/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
    Segoe UI, Arial, Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei',
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 去除输入框默认样式 */
input, button {
  border: none;
  outline: none;
  background: none;
}

/* 去除列表默认样式 */
ul, li {
  list-style: none;
}

/* 去除链接默认样式 */
a {
  color: inherit;
  text-decoration: none;
}

/* 禁止长按选中文本 */
* {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 允许输入框选中文本 */
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* 图片默认样式 */
img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 1px边框 */
.hairline {
  position: relative;
  &::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #ebedf0;
    transform: scaleY(0.5);
  }
}

.page-container {
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; // 增加 iOS 滚动流畅度
  background-color: #f7f8fa;
  position: relative;
  padding-bottom: 50px; // 为底部导航栏留出空间
  box-sizing: border-box;
}

// 隐藏滚动条但保持可滚动
.hide-scrollbar {
  &::-webkit-scrollbar {
    display: none;
  }
  -ms-overflow-style: none;
  scrollbar-width: none;
} 